Planes Toggle Me
Overview
Planes Toggle Me toggles the visibility of the primary work planes (1, 2, and 3) in the active document. Use it when you are working directly inside a part or subassembly and want to quickly show/hide reference planes without selecting an occurrence in a parent assembly.
If the active document contains a user parameter named ShowPlanes, this command will also toggle that parameter. You can use ShowPlanes in your own rules to control additional work planes beyond the standard three.
How It Works
- Targets the current active document (the document you are editing).
- Toggles visibility of work planes 1, 2, and 3.
- Toggles the ShowPlanes user parameter if it exists, enabling rule-based toggling of additional/custom planes.
Usage Instructions
- Open and activate the document in which you want to toggle planes.
- Click Planes Toggle Me in the Configure panel.
- Confirm planes 1–3 are shown or hidden as intended.
- If you use a ShowPlanes-driven rule, verify custom planes respond as expected.
Troubleshooting
- Custom planes did not toggle: Ensure the document has a ShowPlanes user parameter and a rule that sets additional plane visibility from it.
- Planes toggle back immediately: A rule or representation may be overriding visibility. Review document rules and representation settings.
- Nothing seems to happen: Confirm you are editing a Part/Assembly document (not a drawing/presentation) and that the document has work planes available.
Examples
- Toggle all planes in a document: Run the command to switch between showing and hiding all coordinate system planes.
- Toggle custom work planes: Add a rule to your component to toggle visibility for specific named planes using the ShowPlanes parameter.
- Example rule to toggle work plane visibility. Each time you run Planes Toggle Me, these work planes along with the standard coordinate system planes will be toggled according to your rules.
- ThisDoc.Document.ComponentDefinition.WorkPlanes(1).Visible = ShowPlanes
- ThisDoc.Document.ComponentDefinition.WorkPlanes("Top of Fitting").Visible = ShowPlanes
- ThisDoc.Document.ComponentDefinition.WorkPlanes("Bottom of Fitting").Visible = ShowPlanes
- ThisDoc.Document.ComponentDefinition.WorkPlanes("Middle of Fitting").Visible = ShowPlanes